package com.sia.springcloud.kafka;

import org.apache.kafka.common.serialization.Deserializer;

import java.lang.reflect.Member;
import java.util.Map;

/**
 * @Author: Sirius
 * @Date: 2022/5/16 10:44
 * @Description:
 **/

public class DecodeingKafka implements Deserializer<Object> {

    @Override
    public void configure(Map<String, ?> configs, boolean isKey) {
    }

    @Override
    public Object deserialize(String topic, byte[] data) {
        return BeanUtils.BytesToObject(data);
    }

    @Override
    public void close() {

    }
}
